Get rid of an unnecessary static variable.
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 Apr 2006 16:21:41 +0000 (16:21 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 3 Apr 2006 16:21:41 +0000 (16:21 +0000)
2006-04-03  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkmain.c: Get rid of an unnecessary static variable.

ChangeLog
ChangeLog.pre-2-10
gtk/gtkmain.c

index 8c156cca0459bd97636e517fe58bf8e0e7f6fedb..62bfa55503a8b565ef25efa3e7c06fd5a5ea20bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,13 @@
 2006-04-03  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkmain.c: Get rid of an unnecessary static variable.
+
        * gtk/gtktextlayout.c: Fix a warning.
        
        * gtk/gtktextsegment.h: 
        * gtk/gtktextsegment.c: 
+       * gtk/gtktextchild.c:
+       * gtk/gtktextbtree.c:
        * gtk/gtktextmark.c: 
        * gtk/gtktexttypes.h: Make the segment class pointers const.
 
index 8c156cca0459bd97636e517fe58bf8e0e7f6fedb..62bfa55503a8b565ef25efa3e7c06fd5a5ea20bc 100644 (file)
@@ -1,9 +1,13 @@
 2006-04-03  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkmain.c: Get rid of an unnecessary static variable.
+
        * gtk/gtktextlayout.c: Fix a warning.
        
        * gtk/gtktextsegment.h: 
        * gtk/gtktextsegment.c: 
+       * gtk/gtktextchild.c:
+       * gtk/gtktextbtree.c:
        * gtk/gtktextmark.c: 
        * gtk/gtktexttypes.h: Make the segment class pointers const.
 
index 7e7fe83d29e433e4034a1a5319cfe865d51fa706..c97b68b74019868ed05b5c5c98782491c7e63b76 100644 (file)
@@ -161,9 +161,6 @@ static const GDebugKey gtk_debug_keys[] = {
   {"geometry", GTK_DEBUG_GEOMETRY},
   {"icontheme", GTK_DEBUG_ICONTHEME}
 };
-
-static const guint gtk_ndebug_keys = sizeof (gtk_debug_keys) / sizeof (GDebugKey);
-
 #endif /* G_ENABLE_DEBUG */
 
 /**
@@ -370,7 +367,7 @@ gtk_arg_debug_cb (const char *key, const char *value, gpointer user_data)
 {
   gtk_debug_flags |= g_parse_debug_string (value,
                                           gtk_debug_keys,
-                                          gtk_ndebug_keys);
+                                          G_N_ELEMENTS (gtk_debug_keys));
 
   return TRUE;
 }
@@ -380,7 +377,7 @@ gtk_arg_no_debug_cb (const char *key, const char *value, gpointer user_data)
 {
   gtk_debug_flags &= ~g_parse_debug_string (value,
                                            gtk_debug_keys,
-                                           gtk_ndebug_keys);
+                                           G_N_ELEMENTS (gtk_debug_keys));
 
   return TRUE;
 }
@@ -447,7 +444,7 @@ do_pre_parse_initialization (int    *argc,
     {
       gtk_debug_flags = g_parse_debug_string (env_string,
                                              gtk_debug_keys,
-                                             gtk_ndebug_keys);
+                                             G_N_ELEMENTS (gtk_debug_keys));
       env_string = NULL;
     }
 #endif /* G_ENABLE_DEBUG */